$(function () {
	var str = $(".search");
    $(".certificate").on("click",function(){
    	console.info(str.val());
    	$.get(
    			"/certificate/certificate-index.html",
   			    {infoCertificateId:str.val()},
    			function(data){
    				if(data.ok) {
    					toastr.success("查询成功");
    				}else {
    					toastr.error("查询失败：" + data.message);
    				}
    			},"json"
    		);
    	return false;
    });
	
});	